package com.qf.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.qf.pojo.DtsCategory;
import com.qf.vo.CatVo;

import java.util.List;

/**
 * @author Wy
 * @version V1.0
 * @Project MavenDemo
 * @Package com.qf.service
 * @Description:
 * @Date 2022/6/21 11:40
 */
public interface CategoryService {
    /**
     *
     * @param id
     * @param name
     * @param page
     * @param limit
     * @param sort
     * @param order
     * @return
     */

    public IPage<DtsCategory> list(Integer id,String name,Integer page,Integer limit,String sort,String order);


    /**
     * 下拉列表
     * @return
     */
    public  List<CatVo> list1();

    /**
     *
     * @param category
     * @return
     */
    public  DtsCategory add(DtsCategory category);

    /**
     *
     * @param dtsCategory
     * @return
     */
    public  int update(DtsCategory dtsCategory);

    /**
     *
     * @param dtsCategory
     * @return
     */
    public  int delete(DtsCategory dtsCategory);


    /**
     *
     * @return
     */
    public List<DtsCategory> list();
}
